@extends('layouts.tankuang')

@section('content')
<style type="text/css">
#taby .tabs-panels>.panel>.panel-body {  overflow: hidden;height: 600px;  } 
iframe html,iframe body{height: 100%;} 
</style>
    <div id="taby" class="easyui-tabs" border="false" style="width:100%;overflow: hidden;" fit="true">
        <div title="基本情况" style="overflow:hidden">
            <iframe scrolling="auto" frameborder="0"  src="{{url('admin/baoan/edit',$id)}}" style="width:100%;height:100%;"></iframe>
        </div>
		<div title="提交材料">
			<iframe scrolling="auto" frameborder="0"  src="{{url('admin/baoan/cailiao',$id)}}" style="width:100%;height:100%;"></iframe>
		</div>
    </div>
    <script>
    $(document).ready(function(){
    	var winHeight =  window.screen.height;
		var winWidth = 	window.screen.width;
		if(winWidth == 1024){
	  	 	$('#taby').css('height',465+'px');
	  	 	$('#taby').find('iframe').css('height',436+'px');
		   }else if(winWidth == 1280){
	  	 	$('#taby').css('height',465+'px');
	  	 	$('#taby').find('iframe').css('height',436+'px');
		   }else if(winWidth == 1366){
		   	$('#taby').css('height',465+'px'); $('#taby').find('iframe').css('min-height',436+'px');
		   }else if(winWidth == 1920){
	   		$('#taby').css('min-height',($('#w').height()-27)+'px');
	   		$('#taby').find('iframe').css('min-height',($('#w').height()-27)+'px');
		   }else{
	   		$('#taby').css('height',465+'px');
	   		$('#taby').find('iframe').css('min-height',436+'px');
		   }
    })
    </script>
@stop